
module.exports = {
    publicPath:'/',
    outputDir: 'dist',
    assetsDir: 'static',
    lintOnSave: process.env.NODE_ENV === 'production',
    productionSourceMap: false,
    devServer: {
        port: 8081,
        open: true,
        overlay: {
            warnings: false,
            errors: true
        },
        proxy: {
            '^/rest': { // 匹配以此开头的请求
                changeOrigin: true, // 如果接口跨域，需要进行这个参数配置
                // target: 'http://10.36.31.165:8080/summery/rest', // 接口的域名
                target: 'http://127.0.0.1:8089/rest',
                pathRewrite: { '^/rest': ''},
                logLevel: 'debug'
            }
        }
    },


}
